home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-06 | 4.3 KB | 142 lines | [TEXT/SPM ] |
- After generating code for the first time, for your new prototype, follow this method to
- get THINK C++ up and working for you:
-
- CREATING A THINK PROJECT...
-
- • Double click on the Think 8.0 Project Manager.
- • Select the "New Project" menu item in the "File" menu.
- • Select the "C++ Mac application" type.
- • Now enter your project name, using Option-P for the "π" part of the name, e.g. MyProgram.π
-
-
-
- ADDING Gooey SPECIFIC FILES...
-
- • Select the "main.cp" file and then the "Remove 'main.cp'" menu item.
-
- • Select the "Add Group…" item under the "Project" menu.
-
- • Give the group the name "Gooey"
-
- • Open the "Gooey" folder (making the arrow point down.
-
- • Select the "Gooey" folder, this will add files to it.
-
- • Under the "Source" menu, select the "Add Files..." menu item.
-
- • Open the "mm" folder, from the Add dialog.
-
- • Press the "Add All" button, this will select every file in this "mm" dialog.
-
- • Press the "Done" button, this will now add them all to your project.
-
- • Make the project window taller if necessary, for extra empty space at the bottom.
-
-
-
-
- ADDING user SPECIFIC FILES...
-
- • Click below the "Totals" line, this will make the next group at the top level.
-
- • Select the "Add Group…" item under the "Project" menu.
-
- • Give the group the name "Unique"
-
- • Open the "Unique" folder (making the arrow point down.
-
- • Select the "Unique" folder, this will add files to it.
-
- • Under the "Source" menu, select the "Add Files..." menu item.
-
- • Go up one level, from the "mm" folder into the "Source" folder.
-
- • Open the "resources" folder, from the Add dialog.
-
- • Select the file starting with "Rez_" and ending in ".r". This is the Rez file.
-
- • Press the "Add" button.
-
- • Go up one level, from the "resources" folder into the "Source" folder.
-
- • Open the "u" folder, from the Add dialog.
-
- • Press the "Add All" button, this will select every file in this "u" dialog.
-
- • Press the "Done" button, this will now add them all to your project.
-
-
-
- SETTING UP THE PROJECT...
-
- • Under the "Project" menu, select the "Options..." menu item.
-
- • Set all your THINK C++ preferences.
-
- • Change the prefix file used to be
- #include "mmHeadersPPC".
-
-
-
-
- PRECOMPILED HEADERS...
-
- • Open the "mmHeaders.cp" file. Click on this file to select it.
-
- • Under the "Source" menu select the "Precompile…" menu item.
-
- • Save the precompiled headers under the "mmHeadersPPC" name.
-
- • Close the "mmHeaders.cp"file.
-
- • Set your THINK C++ prefix preferences to say:
- #include "mmHeadersPPC"
-
-
-
- CODING...
-
- • Make your changes to any file that does not start with "mm". All the other files hook into
- the "mm" files to provide you with access.
-
-
-
-
- RE-GENERATION. After making changes or additions to your prototype.
-
- • Generate all sources again. This will make a new folder named "Sources" or "Sources" with
- a number after it if that folder alreay exists.
-
- • Drag the "mm" folder from the newly generated folder into your working folder.
- NOTE: This replaces your older "mm" folder. If you have made changes to any "mm" files, you
- should never need to, then drag them into another folder first.
-
- • Drag the "mmXXX.rsrc" file from the new "resources" folder into your working "resources" folder.
-
- • Drag the "XXXX.π.rsrc" file from your "Sources" folder into the trash can, you want THINK C to
- make a new one using the new resource file.
-
- • Empty the trash.
-
-
- If you added a new Window, Dialog, or Alert then drag that corresponding file from the new "u"
- folder into your working "u" folder. If you are asked about replacing a file then say "No", you
- got the wrong file.
-
-
- If you added a menu then open your "menuXXX.h" file and the new "menuXXX.h". Copy over the prototype
- for the new menu. Open your "menuXXX.c" file and the new "menuXXX.c". Copy over the routine for the new menu.
-
- If you added a button or other control then let THINK find any additional routines for you, in error messages.
-
-
-
- • Under the "Project" menu, select the "Remove Objects" menu item. This will make sure that all files
- will be recompiled.
-
- • Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile all the files.
-
- If there are errors involving new routines, like a checkbox handler routine where there were no check
- boxes before. Open the old corresponding "xxx.h" file, from the "u" folder. Open the new "xxx.h" file,
- copy the new prototype over. Open the "xxx.c" files and copy over the new routine.
-